package freemaker;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class TestsMS {
	
	public static void main(String[] args) {
		Map<String, Object> datas = new HashMap<String, Object>();
		datas.put("enteprise","思源软件");
		datas.put("currentTime",new Date().toString());
		datas.put("equip","aa");
		datas.put("cod","80");
		datas.put("codstand","70");
		
		String  tem="尊敬的${enteprise},${currentTime},监测设备${equip},COD浓度报警，报警值${cod},标准值${codstand}!";
		System.out.println(FreeMarkerUtil.getTemplateContent(tem, datas));
//		System.out.println(FreeMarkerUtil.geneFileStr("alerm.ftl","src/freemaker",datas));
	}

}
